#ifndef __SHIP_H__
#define __SHIP_H__
#include <SDL/SDL.h>

extern SDL_Surface *surf_small_ship;	//!< Indicator of number of ships remaining
extern SDL_Surface *surf_ship;	//!< Spaceship element
extern float xship, yship;	// X position, 0..XSIZE
extern float xvel, yvel;	// Change in X position per tick.

/*! \brief Draw the ship.
 *
 * \param surf_screen Surface to draw on.
 */
void draw_ship(SDL_Surface * surf_screen);

/*! \brief Draw the little ships.
 *
 * This is used to show the player how many "lives" he has left. After
 * that...
 *
 * \param nships Number of ships to draw.
 * \param surf_screen Surface to draw on.
 */
void draw_little_ships(int nships, SDL_Surface * surf_screen);

/*! \brief Initialise the ship
 *
 * \return The ship SDL_Surface* or NULL if an error occured.
 */
SDL_Surface *init_ship();

/*! \brief Shields up!
 *
 * \param surf_screen Surface to draw on.
 */
void draw_ship_shield(SDL_Surface * surf_screen);

/*! \brief Check for collision.
 *
 * Simple algorithm checks if the black pixels around the ship are
 * still black...
 *
 * \param surf_screen Surface where everything is drawn on
 * \return 0 = no collision, 1 = BANG!
 */
int ship_check_collision(SDL_Surface * surf_screen);



#endif
